<?php

use Illuminate\Database\Seeder;

class AppUpdateInfosTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $faker = Faker\Factory::create();
        //
        for($i=0;$i<10;$i++){
            $params = [
                'app_update_time' => \Carbon\Carbon::now(),
                'title' => $faker->title,
                'version' => 'V1.0.'.$i,
                'install_pkg_url' => $faker->url,
                'ios_pkg_url' => $faker->url,
                'app_update_text' => $faker->text,
                'status' => 2
            ];
            \App\Models\AppUpdateInfo::create($params);
        }
    }
}
